Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPStan: update to latest version #455

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Sep 11, 2024

PHPStan: move CLI options to config

This will make it more intuitive for contributors to run PHPStan locally.

PHPStan: update to latest version

PHPStan keeps improving and adding more and better checks. Let's use the latest version to get the most benefit from it ;-)

Includes ignoring one newly flagged issue and fixing another.

 ------ ---------------------------------------------------------------
  Line   module.audio-video.quicktime.php
 ------ ---------------------------------------------------------------
  1653   Variable $altitude in empty() always exists and is not falsy.
 ------ ---------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------
  Line   module.audio-video.riff.php
 ------ -----------------------------------------------------------------------------------------
  101    Binary operation "+" between (float|int) and array|float|int|false results in an error.
 ------ -----------------------------------------------------------------------------------------

This will make it more intuitive for contributors to run PHPStan locally.
PHPStan keeps improving and adding more and better checks. Let's use the latest version to get the most benefit from it ;-)

Includes ignoring one newly flagged issue and fixing another.

```
 ------ ---------------------------------------------------------------
  Line   module.audio-video.quicktime.php
 ------ ---------------------------------------------------------------
  1653   Variable $altitude in empty() always exists and is not falsy.
 ------ ---------------------------------------------------------------

 ------ -----------------------------------------------------------------------------------------
  Line   module.audio-video.riff.php
 ------ -----------------------------------------------------------------------------------------
  101    Binary operation "+" between (float|int) and array|float|int|false results in an error.
 ------ -----------------------------------------------------------------------------------------
```
@JamesHeinrich JamesHeinrich merged commit 78dc28a into JamesHeinrich:master Sep 11, 2024
15 checks passed
@jrfnl jrfnl deleted the feature/update-phpstan branch September 11, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants